home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / powervww / pvuses.h < prev    next >
C/C++ Source or Header  |  1998-01-05  |  8KB  |  437 lines

  1. //  ____________________________________________________
  2. // |                                                    |
  3. // |  Project:     POWER VIEW INTERFACE                 |
  4. // |  File:        PVUSES.H                             |
  5. // |  Compiler:    WPP386 (10.6)                        |
  6. // |                                                    |
  7. // |  Subject:     Include files manager                |
  8. // |                                                    |
  9. // |  Author:      Emil Dotchevski                      |
  10. // |____________________________________________________|
  11. //
  12. // E-mail: zajo@geocities.com
  13. // URL:    http://www.geocities.com/SiliconValley/Bay/3577
  14.  
  15. /*
  16. CONDITIONAL DIRECTIVES DESCRIPTION
  17. ----------------------------------
  18.  
  19.   Identifier            Description
  20.   --------------------  ----------------------------------------------------
  21.   CYR                   Set cyrillic messages
  22.   HGR                   640x480 graphics mode layout
  23.   MEMMON                Enable memory monitor
  24.   DEBUG                 Debugging assertions enabled
  25.   HDEBUG                Heap debugging assertions enabled
  26.   INIFILE               Set ini filename, default is "PV.INI"
  27.   NOCLOCK               Disable clock/date monitor
  28.   NOCONFIG              Disable configuration INI file handling
  29.   NOFLOAT               Disable float input boxes
  30.   NOHELP                Disable help
  31.   NOHIST                Disable input boxes history lists
  32.   NOICONS               Disable graphical icons
  33.   NOINI                 Disable INI files handling
  34.   NOLOCALMENU           Disable local menu
  35.   NOMAINMENU            Disable main menu
  36.   NOMOUSE               Disable mouse handling
  37.   NOPAL                 Disable EGA/VGA palette procs
  38.   NOPARAM               Disable command-line params handling
  39.   NOTIMER               Disable timer handling
  40.   NOTOOLBAR             Disable toolbar
  41.   TABLEINFO             Enable table information
  42.   CPPHILIGHT            Enable cpp syntax hilighting
  43.   ASMHILIGHT            Enable asm syntax hilighting
  44.   A51HILIGHT            Enable a51 syntax hilighting
  45.   --------------------  ----------------------------------------------------
  46. */
  47.  
  48. //Defines dependency info
  49.  
  50. #if defined(CPPHILIGHT) || defined(ASMHILIGHT) || defined(A51HILIGHT)
  51. #define SYNTAXHILIGHT
  52. #endif
  53.  
  54. #ifdef NOINI
  55. #define NOCONFIG
  56. #endif
  57.  
  58. #ifdef NOMOUSE
  59. #define NOTOOLBAR
  60. #endif
  61.  
  62. #ifdef HDEBUG
  63. #define DEBUG
  64. #define uses_malloc
  65. #endif
  66.  
  67. #ifdef DEBUG
  68.   #include <assert.h>
  69. #else
  70.   #define NDEBUG
  71. #endif
  72.  
  73.  
  74. //Headers dependency info
  75.  
  76. #ifdef uses_app
  77. #define uses_cmd
  78. #define uses_items
  79. #endif
  80.  
  81. #ifdef uses_check
  82. #define uses_items
  83. #endif
  84.  
  85. #ifdef uses_desk
  86. #define uses_items
  87. #endif
  88.  
  89. #ifdef uses_dialog
  90. #define uses_win
  91. #define uses_lbox
  92. #endif
  93.  
  94. #ifdef uses_hist
  95. #define uses_combo
  96. #endif
  97.  
  98. #ifdef uses_ini
  99. #define uses_editor
  100. #define uses_stdio
  101. #endif
  102.  
  103. #ifdef uses_input
  104. #define uses_button
  105. #define uses_editor
  106. #define uses_combo
  107. #endif
  108.  
  109. #ifdef uses_label
  110. #define uses_items
  111. #endif
  112.  
  113. #ifdef uses_lines
  114. #define uses_items
  115. #endif
  116.  
  117. #ifdef uses_dc
  118. #define uses_system
  119. #endif
  120.  
  121. #ifdef uses_system
  122. #define uses_dos
  123. #endif
  124.  
  125. #ifdef uses_txt
  126. #define uses_stdarg
  127. #define uses_items
  128. #endif
  129.  
  130. #ifdef uses_combo
  131. #define uses_items
  132. #define uses_lbox
  133. #endif
  134.  
  135. #ifdef uses_editor
  136. #define uses_direct
  137. #define uses_basics
  138. #define uses_win
  139. #endif
  140.  
  141. #ifdef uses_win
  142. #define uses_button
  143. #define uses_cmdgen
  144. #define uses_scroll
  145. #endif
  146.  
  147. #ifdef uses_cmdgen
  148. #define uses_cmd
  149. #define uses_items
  150. #define uses_button
  151. #endif
  152.  
  153. #ifdef uses_cmd
  154. #define uses_basics
  155. #endif
  156.  
  157. #ifdef uses_db
  158. #define uses_table
  159. #endif
  160.  
  161. #ifdef uses_table
  162. #define uses_items
  163. #define uses_lbox
  164. #endif
  165.  
  166. #ifdef uses_stddlg
  167. #define uses_dialog
  168. #define uses_lbox
  169. #endif
  170.  
  171. #ifdef uses_lbox
  172. #define uses_list
  173. #define uses_scroll
  174. #endif
  175.  
  176. #ifdef uses_scroll
  177. #define uses_button
  178. #endif
  179.  
  180. #ifdef uses_button
  181. #define uses_items
  182. #endif
  183.  
  184. #ifdef uses_hgr
  185.   #ifndef HGR
  186.   #error "HGR" must be pre-defined if you want graphics mode support
  187.   #endif
  188. #define uses_items
  189. #endif
  190.  
  191. #ifdef uses_items
  192. #define uses_stdlib
  193. #define uses_drv
  194. #endif
  195.  
  196.  
  197. //Standard headers
  198.  
  199. #ifdef uses_conio
  200. #include <conio.h>
  201. #endif
  202.  
  203. #ifdef uses_ctype
  204. #include <ctype.h>
  205. #endif
  206.  
  207. #ifdef uses_dos
  208. #include <dos.h>
  209. #endif
  210.  
  211. #ifdef uses_direct
  212. #include <direct.h>
  213. #endif
  214.  
  215. #ifdef uses_errno
  216. #include <errno.h>
  217. #endif
  218.  
  219. #ifdef uses_i86
  220. #include <i86.h>
  221. #endif
  222.  
  223. #ifdef uses_fcntl
  224. #include <fcntl.h>
  225. #endif
  226.  
  227. #ifdef uses_io
  228. #include <io.h>
  229. #endif
  230.  
  231. #if defined( uses_math )
  232. #include <math.h>
  233. #endif
  234.  
  235. #ifdef uses_malloc
  236. #include <malloc.h>
  237. #endif
  238.  
  239. #ifdef uses_process
  240. #include <process.h>
  241. #endif
  242.  
  243. #ifdef uses_signal
  244. #include <signal.h>
  245. #endif
  246.  
  247. #ifdef uses_stdarg
  248. #include <stdarg.h>
  249. #endif
  250.  
  251. #ifdef uses_stdio
  252. #include <stdio.h>
  253. #endif
  254.  
  255. #ifdef uses_stdlib
  256. #include <stdlib.h>
  257. #endif
  258.  
  259. #ifdef uses_string
  260. #include <string.h>
  261. #endif
  262.  
  263. #ifdef uses_time
  264. #include <time.h>
  265. #endif
  266.  
  267.  
  268. //Power View headers
  269.  
  270. #ifndef _PVTYPES_H
  271. #define _PVTYPES_H
  272. typedef unsigned short word;
  273. typedef unsigned char boolean;
  274. typedef signed char schar;
  275. typedef unsigned int uint;
  276. #endif
  277.  
  278. #ifdef uses_basics
  279. #include "PVbasics.h"
  280. #endif
  281.  
  282. #ifdef uses_cmd
  283. #include "PVcmd.h"
  284. #endif
  285.  
  286. #ifdef uses_drv
  287. #include "PVdrv.h"
  288. #endif
  289.  
  290. #ifdef uses_items
  291. #include "PVitems.h"
  292. #endif
  293.  
  294. #ifdef uses_app
  295. #include "PVapp.h"
  296. #endif
  297.  
  298. #ifdef uses_button
  299. #include "PVbutton.h"
  300. #endif
  301.  
  302. #ifdef uses_calc
  303. #include "PVcalc.h"
  304. #endif
  305.  
  306. #ifdef uses_calend
  307. #include "PVcalend.h"
  308. #endif
  309.  
  310. #ifdef uses_tetris
  311. #include "PVtetris.h"
  312. #endif
  313.  
  314. #ifdef uses_check
  315. #include "PVcheck.h"
  316. #endif
  317.  
  318. #if !defined( NOCLOCK ) && defined( uses_clock )
  319. #include "PVclock.h"
  320. #endif
  321.  
  322. #ifdef uses_colors
  323. #include "PVcolors.h"
  324. #endif
  325.  
  326. #ifdef uses_list
  327. #include "PVlist.h"
  328. #endif
  329.  
  330. #ifdef uses_scroll
  331. #include "PVscroll.h"
  332. #endif
  333.  
  334. #ifdef uses_lbox
  335. #include "PVlbox.h"
  336. #endif
  337.  
  338. #ifdef uses_combo
  339. #include "PVcombo.h"
  340. #endif
  341.  
  342. #if !defined( NOPARAM ) && defined( uses_comlin )
  343. #include "PVcomlin.h"
  344. #endif
  345.  
  346. #if !defined( NOCONFIG ) && defined ( uses_config )
  347. #include "PVconfig.h"
  348. #endif
  349.  
  350. #ifdef uses_desk
  351. #include "PVdesk.h"
  352. #endif
  353.  
  354. #ifdef uses_cmdgen
  355. #include "PVcmdgen.h"
  356. #endif
  357.  
  358. #ifdef uses_win
  359. #include "PVwin.h"
  360. #endif
  361.  
  362. #ifdef uses_dialog
  363. #include "PVdialog.h"
  364. #endif
  365.  
  366. #ifdef uses_editor
  367. #include "PVeditor.h"
  368. #endif
  369.  
  370. #if !defined( NOHELP ) && defined( uses_help )
  371. #include "PVhelp.h"
  372. #endif
  373.  
  374. #if !defined ( NOHIST ) &&  defined( uses_hist )
  375. #include "PVhist.h"
  376. #endif
  377.  
  378. #ifdef uses_icons
  379. #include "PVicons.h"
  380. #endif
  381.  
  382. #if !defined( NOINI ) && defined ( uses_ini )
  383. #include "PVini.h"
  384. #endif
  385.  
  386. #ifdef uses_init
  387. #include "PVinit.h"
  388. #endif
  389.  
  390. #ifdef uses_input
  391. #include "PVinput.h"
  392. #endif
  393.  
  394. #ifdef uses_label
  395. #include "PVlabel.h"
  396. #endif
  397.  
  398. #ifdef uses_lines
  399. #include "PVlines.h"
  400. #endif
  401.  
  402. #if defined( MEMMON ) && defined( uses_memmon )
  403. #include "PVmemmon.h"
  404. #endif
  405.  
  406. #ifdef uses_stddlg
  407. #include "PVstddlg.h"
  408. #endif
  409.  
  410. #ifdef uses_system
  411. #include "PVsystem.h"
  412. #endif
  413.  
  414. #ifdef uses_hgr
  415. #include "PVhgr.h"
  416. #endif
  417.  
  418. #ifdef uses_dc
  419. #include "PVdc.h"
  420. #endif
  421.  
  422. #ifdef uses_table
  423. #include "PVtable.h"
  424. #endif
  425.  
  426. #ifdef uses_db
  427. #include "PVdb.h"
  428. #endif
  429.  
  430. #ifdef uses_txt
  431. #include "PVtxt.h"
  432. #endif
  433.  
  434. #if !defined( NOHELP ) && defined( uses_ht )
  435. #include "PVht.h"
  436. #endif
  437.